package com.guapi.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.guapi.annotation.UniqueIndex;
import lombok.Data;

import java.util.List;

@Data
@TableName("menu")
public class Menu extends BaseDao{
    private String name;

    @TableField("parent_id")
    private String parentId;

    @TableField("menu_name")
    private String menuName;

    //{VUE} path: '/user/list'
    @UniqueIndex
    private String path;

    //{VUE} ()=> import('../views/xxx.vue')
    @UniqueIndex
    private String component;

    private String icon;

    @TableField(exist = false)
    private List<Menu> children;


}
